<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      .container {
        display: flex;
        justify-content: space-between;
        max-width: 1240px;
        min-width: 376px;
        height: 50vh;
        background-color: #ccc;
      }

      .container .left {
        flex: 20%;
        background-color: pink;
      }
      .container .right {
        flex: 80%;
        display: flex;
        flex-wrap: wrap;
        background-color: palegreen;
      }
      .container .right .item {
        flex: 25%;
      }
      .container .right .item:nth-child(1) {
        background-color: palegoldenrod;
      }
      .container .right .item:nth-child(2) {
        background-color: palegreen;
      }
      .container .right .item:nth-child(3) {
        background-color: paleturquoise;
      }
      .container .right .item:nth-child(4) {
        background-color: palevioletred;
      }
      .container .right .item:nth-child(5) {
        background-color: papayawhip;
      }
      .container .right .item:nth-child(6) {
        background-color: palegoldenrod;
      }
      .container .right .item:nth-child(7) {
        background-color: palegreen;
      }
      .container .right .item:nth-child(8) {
        background-color: paleturquoise;
      }
    </style>
  </head>
  <body>
    <div class="container">
      <div class="left"></div>
      <div class="right">
        <div class="item"></div>
        <div class="item"></div>
        <div class="item"></div>
        <div class="item"></div>
        <div class="item"></div>
        <div class="item"></div>
        <div class="item"></div>
        <div class="item"></div>
      </div>
    </div>
  </body>
</html>
